<?php
include_once("include/config.php");
include_once("include/reg.lib.php");

if(isset($_GET['id']) and strlen($_GET['id']) == 32){
	reg_clean_expired();
	$status = reg_confirm($_GET['id']);
	
	switch($status){
		case REG_SUCCESS:
			echo "The registration has been confirmed, now you can login";
		break;
		case REG_FAILED:
			echo "The registration cannot be confirmed, please contact the administrator";
		break;
	}
}
?>